package com.me.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.sys.dao.FieldDictionaryDao;
import com.me.modules.sys.entity.FieldDictionaryEntity;
import com.me.modules.sys.service.FieldDictionaryService;



@Service("fieldDictionaryService")
public class FieldDictionaryServiceImpl implements FieldDictionaryService {


	@Autowired
	private FieldDictionaryDao fieldDictionaryDao;

	@Override
	public FieldDictionaryEntity queryObject(Long id){
		return fieldDictionaryDao.queryObject(id);
	}

	@Override
	public List<FieldDictionaryEntity> queryList(Map<String, Object> map){
		return fieldDictionaryDao.queryList(map);
	}

    @Override
    public List<FieldDictionaryEntity> queryListByBean(FieldDictionaryEntity entity) {
        return fieldDictionaryDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return fieldDictionaryDao.queryTotal(map);
	}

	@Override
	public int save(FieldDictionaryEntity fieldDictionary){


		return fieldDictionaryDao.save(fieldDictionary);
	}

	@Override
	public int update(FieldDictionaryEntity fieldDictionary){
        return fieldDictionaryDao.update(fieldDictionary);
	}

	@Override
	public int delete(Long id){
        return fieldDictionaryDao.delete(id);
	}

	@Override
	public int deleteBatch(Long[] ids){
        return fieldDictionaryDao.deleteBatch(ids);
	}


	@Override
	public List<FieldDictionaryEntity> queryByTableName(String tableName) {
		return fieldDictionaryDao.queryByTableName(tableName);}
}
